package com.kjtpay.design_pattern.flyweight;

/**
 * 具体网站类；ConcreteFlyweight
 */
class ConcreteWebSite extends WebSite {
    private String type;

    public ConcreteWebSite(String type) {
        this.type = type;
    }

    @Override
    public String use(User user) {
        return "网站分类：" + type + " === 用户：" + user.getName() + "\n";
    }
}
